Howdy, is this bug already logged for Adobe Cf?
# adobe
j
Howdy, is this bug already logged for Adobe Cf?
a
That is quirky, but why are you using a
writeoutput
inside a
cfoutput
?
t
And lucee does the smae thing, so I don't think it's a bug... I think it's that
writeoutput
returns a boolean -- probably true if the value was successfully written or something... but it's not documented.
j
@aliaspooryorik, it was a hack to get around injecting into content that was wrapped in a big `cfoutput encodefor="html"`…. which worked.. but got that bool
b
@James Balaguer But why do you need the write output at all. I assume, you're not using a boolean literal in your actual code, but a variable. So just output the variable directly
Copy code
<cfoutput encodefor="whatever">
  #myoutput#
</cfoutput>
Or, if you have your heart set on the
writeOPutput()
BIF specifically, then don't wrap it in hashes, call it from a cfset.
Copy code
<cfoutput>
  <cfset writeOutput( myoutput ) >
</cfoutput>
Now any return value from the function will be discarded, but it will still output to the page.
👍 2
j
Thanks Brad, again we have an older piece of code that’s widely distributed I have to handle for. (and I literally just don’t think in tags anymore, 🙂 )
👍 1